<template>
<!--  <div class="row justify-center container-row" ref="el">-->
<!--    <div class="col-8">-->
<!--      <div class="justify-center row-padding">-->
  <div class="container-wrapper" ref="el">
    <div class="row-padding justify-center container-xxl container-row">
        <div class="image-text">
          <dic class="text">
            <div class="card__text">

              <h3 class="h2 rte rich-text__title">
              <slot name="title"></slot>
              </h3>

              <div class="rte text-size--regular">
                <p><slot name="default"></slot></p>
              </div>

              <q-btn rounded size="lg" color="black" label="Learn more" style="width: 150px" />

            </div>
          </dic>


          <dic class="rich-text__image">
            <q-img src="//local-theme-light-demo.myshopify.com/cdn/shop/files/about_us_1.jpg?v=1655103293&amp;width=480" alt="" srcset="//local-theme-light-demo.myshopify.com/cdn/shop/files/about_us_1.jpg?v=1655103293&amp;width=240 240w,//local-theme-light-demo.myshopify.com/cdn/shop/files/about_us_1.jpg?v=1655103293&amp;width=360 360w,//local-theme-light-demo.myshopify.com/cdn/shop/files/about_us_1.jpg?v=1655103293&amp;width=420 420w,//local-theme-light-demo.myshopify.com/cdn/shop/files/about_us_1.jpg?v=1655103293&amp;width=480 480w,//local-theme-light-demo.myshopify.com/cdn/shop/files/about_us_1.jpg?v=1655103293&amp;width=640 640w,//local-theme-light-demo.myshopify.com/cdn/shop/files/about_us_1.jpg?v=1655103293&amp;width=840 840w,//local-theme-light-demo.myshopify.com/cdn/shop/files/about_us_1.jpg?v=1655103293&amp;width=1080 1080w" class="img" width="1200" height="1200" data-ratio="1.0" loading="lazy" style="object-position: 50.0% 50.0%" id="responsive-background-template--15227585265725__1655103193061c9798" />
          </dic>
        </div>
      </div>
    </div>
</template>

<script setup lang='ts'>
import {defineProps, defineEmits, defineExpose} from 'vue'

defineProps({

})

const emit = defineEmits([])

defineExpose({})
</script>

<style scoped lang='less'>
.row{
  border-top: 0.0625rem solid #d9d9d9;
}
.image-text{
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "text image";
}
.rich-text__image {
   grid-area: image;
   display: flex;
   align-items: center;
   height: 100%;
 }
.row-padding{
  padding: 0 40px;
}
.text{
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 60px;
  h3{
    margin-bottom: 21px;
    font-weight: 600;
    font-size: 50px;
  }
  .text-size--regular{
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 21px;
  }
  .button {
    padding: 10px;
    color: #fff;
    cursor: pointer;
    border-radius: 30px; /* 设置按钮圆角 */
    background-color: #000000; /* 设置背景颜色 */
    border: 2px solid #000000;
    width: 30%;
  }
  :deep(.block){
    font-size: 16px;
  }
}
</style>